package models

type Channel struct {
	Id int `json:"id" required:"true" description:"频道id"`
	Name string `json:"name" required:"true" description:"频道名称"`
}

type Channels struct {
	Data []*Channel `json:"data" required:"true" description:"评论内容列表"`
	Code int `json:"code" required:"true" description:"状态码"`
	ErrMsg string `json:"err" required:"true" description:"错误信息 默认值为空字符串"`
}

type StartStatus struct {
	Code int `json:"code" required:"true" description:"0:开始直播成功,..."`
	SessionId int `json:"session_id" required:"true" description:"会话id"`
	ErrMsg string `json:"err" required:"true" description:"错误信息"`
}

type Comments struct {
	Data []*Comment `json:"data" required:"true" description:"评论内容列表"`
	CurPage int `json:"cur_pag" required:"true" description:"当前页 不分页时默认值为0"`
	Total int `json:"size" required:"true" description:"请求的条目"`
	Code int `json:"code" required:"true" description:"状态码"`
	ErrMsg string `json:"err" required:"true" description:"错误信息 默认值为空字符串"`
}

type Comment struct {
	Id int `json:"id" required:"true" description:"当前评论id"`
	Time string `json:"time" required:"true" description:"发布时间"`
	Name string `json:"name" required:"true" description:"发布者名称"`
	Content string `json:"content" required:"true" description:"内容"`
	Imgs []string  `json:"imgs" required:"false" description:"图片地址 最多九张"`
}

type SubmitStatus struct {
	Code int `json:"code" required:"true" description:"0提交成功,..."`
	ErrMsg string `json:"err" required:"true" description:"错误信息"`
}

type CloseStatus struct {
	Code int `json:"code" required:"true" description:"0关闭成功,..."`
	ErrMsg string `json:"err" required:"true" description:"错误信息"`
}